package com.company.behavioral.strategy_pattern.conctete_strategy;

import com.company.behavioral.strategy_pattern.strategy.Discount;

/**
 * VIP会员票折扣类
 * @ClassName VIPDiscount
 * @Author tiezheng.han
 * @Date 2020/9/7 15:46
 **/
public class VIPDiscount implements Discount {

    private final double DISCOUNT = 0.5;

    @Override
    public double calculate(double price) {
        System.out.println("VIP票：");
        System.out.println("增加积分：");
        return price * DISCOUNT;
    }
}
